package EVM;


import Commons.Cell;

public class SimpleLogicGate {

    protected Cell input;
    protected Cell output;
    public String name;

    public SimpleLogicGate(Cell input, Cell output, String name) {
        this.input = input;
        this.output = output;
        this.name = name;
    }


    public void execute(boolean open) {
        if (open) {
            output.set(input.get());
        }
    }
}
